import request from '@/utils/request'
import useUserStore from "@/store/modules/user";


// 获取路由
export const getRouters = () => {
  return request({
    url: '/admin/api/authority/getMenuByUserId',
    method: 'get',
    params: {
      userId: useUserStore().userData.loginVO.id,
    },
  })
}